int LoadImageGeneric(const char *filename, byte *buf, int bufSize, int *width, int *height);